3.214 \(\int x^2 (a+b \tanh ^{-1}(c x^{3/2})) \, dx\)

Optimal. Leaf size=49 \[ \frac{1}{3} x^3 \left (a+b \tanh ^{-1}\left (c x^{3/2}\right )\right )-\frac{b \tanh ^{-1}\left (c x^{3/2}\right )}{3 c^2}+\frac{b x^{3/2}}{3 c} \]

[Out]

(b*x^(3/2))/(3*c) - (b*ArcTanh[c*x^(3/2)])/(3*c^2) + (x^3*(a + b*ArcTanh[c*x^(3/2)]))/3

________________________________________________________________________________________

Rubi [A]  time = 0.0337865, antiderivative size = 49, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.312, Rules used = {6097, 321, 329, 275, 206} \[ \frac{1}{3} x^3 \left (a+b \tanh ^{-1}\left (c x^{3/2}\right )\right )-\frac{b \tanh ^{-1}\left (c x^{3/2}\right )}{3 c^2}+\frac{b x^{3/2}}{3 c} \]

Antiderivative was successfully verified.

[In]

Int[x^2*(a + b*ArcTanh[c*x^(3/2)]),x]

[Out]

(b*x^(3/2))/(3*c) - (b*ArcTanh[c*x^(3/2)])/(3*c^2) + (x^3*(a + b*ArcTanh[c*x^(3/2)]))/3

Rule 6097

Int[((a_.) + ArcTanh[(c_.)*(x_)^(n_)]*(b_.))*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[((d*x)^(m + 1)*(a + b*ArcTa
nh[c*x^n]))/(d*(m + 1)), x] - Dist[(b*c*n)/(d*(m + 1)), Int[(x^(n - 1)*(d*x)^(m + 1))/(1 - c^2*x^(2*n)), x], x
] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[m, -1]

Rule 321

Int[((c_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[(c^(n - 1)*(c*x)^(m - n + 1)*(a + b*x^n
)^(p + 1))/(b*(m + n*p + 1)), x] - Dist[(a*c^n*(m - n + 1))/(b*(m + n*p + 1)), Int[(c*x)^(m - n)*(a + b*x^n)^p
, x], x] /; FreeQ[{a, b, c, p}, x] && IGtQ[n, 0] && GtQ[m, n - 1] && NeQ[m + n*p + 1, 0] && IntBinomialQ[a, b,
 c, n, m, p, x]

Rule 329

Int[((c_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> With[{k = Denominator[m]}, Dist[k/c, Subst[I
nt[x^(k*(m + 1) - 1)*(a + (b*x^(k*n))/c^n)^p, x], x, (c*x)^(1/k)], x]] /; FreeQ[{a, b, c, p}, x] && IGtQ[n, 0]
 && FractionQ[m] && IntBinomialQ[a, b, c, n, m, p, x]

Rule 275

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> With[{k = GCD[m + 1, n]}, Dist[1/k, Subst[Int[x^((m
 + 1)/k - 1)*(a + b*x^(n/k))^p, x], x, x^k], x] /; k != 1] /; FreeQ[{a, b, p}, x] && IGtQ[n, 0] && IntegerQ[m]

Rule 206

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rubi steps

\begin{align*} \int x^2 \left (a+b \tanh ^{-1}\left (c x^{3/2}\right )\right ) \, dx &=\frac{1}{3} x^3 \left (a+b \tanh ^{-1}\left (c x^{3/2}\right )\right )-\frac{1}{2} (b c) \int \frac{x^{7/2}}{1-c^2 x^3} \, dx\\ &=\frac{b x^{3/2}}{3 c}+\frac{1}{3} x^3 \left (a+b \tanh ^{-1}\left (c x^{3/2}\right )\right )-\frac{b \int \frac{\sqrt{x}}{1-c^2 x^3} \, dx}{2 c}\\ &=\frac{b x^{3/2}}{3 c}+\frac{1}{3} x^3 \left (a+b \tanh ^{-1}\left (c x^{3/2}\right )\right )-\frac{b \operatorname{Subst}\left (\int \frac{x^2}{1-c^2 x^6} \, dx,x,\sqrt{x}\right )}{c}\\ &=\frac{b x^{3/2}}{3 c}+\frac{1}{3} x^3 \left (a+b \tanh ^{-1}\left (c x^{3/2}\right )\right )-\frac{b \operatorname{Subst}\left (\int \frac{1}{1-c^2 x^2} \, dx,x,x^{3/2}\right )}{3 c}\\ &=\frac{b x^{3/2}}{3 c}-\frac{b \tanh ^{-1}\left (c x^{3/2}\right )}{3 c^2}+\frac{1}{3} x^3 \left (a+b \tanh ^{-1}\left (c x^{3/2}\right )\right )\\ \end{align*}

Mathematica [A]  time = 0.0263497, size = 75, normalized size = 1.53 \[ \frac{a x^3}{3}+\frac{b \log \left (1-c x^{3/2}\right )}{6 c^2}-\frac{b \log \left (c x^{3/2}+1\right )}{6 c^2}+\frac{b x^{3/2}}{3 c}+\frac{1}{3} b x^3 \tanh ^{-1}\left (c x^{3/2}\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[x^2*(a + b*ArcTanh[c*x^(3/2)]),x]

[Out]

(b*x^(3/2))/(3*c) + (a*x^3)/3 + (b*x^3*ArcTanh[c*x^(3/2)])/3 + (b*Log[1 - c*x^(3/2)])/(6*c^2) - (b*Log[1 + c*x
^(3/2)])/(6*c^2)

________________________________________________________________________________________

Maple [A]  time = 0.029, size = 57, normalized size = 1.2 \begin{align*}{\frac{{x}^{3}a}{3}}+{\frac{b{x}^{3}}{3}{\it Artanh} \left ( c{x}^{{\frac{3}{2}}} \right ) }+{\frac{b}{3\,c}{x}^{{\frac{3}{2}}}}+{\frac{b}{6\,{c}^{2}}\ln \left ( c{x}^{{\frac{3}{2}}}-1 \right ) }-{\frac{b}{6\,{c}^{2}}\ln \left ( c{x}^{{\frac{3}{2}}}+1 \right ) } \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*(a+b*arctanh(c*x^(3/2))),x)

[Out]

1/3*x^3*a+1/3*b*x^3*arctanh(c*x^(3/2))+1/3*b*x^(3/2)/c+1/6/c^2*b*ln(c*x^(3/2)-1)-1/6/c^2*b*ln(c*x^(3/2)+1)

________________________________________________________________________________________

Maxima [A]  time = 0.995113, size = 78, normalized size = 1.59 \begin{align*} \frac{1}{3} \, a x^{3} + \frac{1}{6} \,{\left (2 \, x^{3} \operatorname{artanh}\left (c x^{\frac{3}{2}}\right ) + c{\left (\frac{2 \, x^{\frac{3}{2}}}{c^{2}} - \frac{\log \left (c x^{\frac{3}{2}} + 1\right )}{c^{3}} + \frac{\log \left (c x^{\frac{3}{2}} - 1\right )}{c^{3}}\right )}\right )} b \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(a+b*arctanh(c*x^(3/2))),x, algorithm="maxima")

[Out]

1/3*a*x^3 + 1/6*(2*x^3*arctanh(c*x^(3/2)) + c*(2*x^(3/2)/c^2 - log(c*x^(3/2) + 1)/c^3 + log(c*x^(3/2) - 1)/c^3
))*b

________________________________________________________________________________________

Fricas [A]  time = 1.85607, size = 142, normalized size = 2.9 \begin{align*} \frac{2 \, a c^{2} x^{3} + 2 \, b c x^{\frac{3}{2}} +{\left (b c^{2} x^{3} - b\right )} \log \left (-\frac{c^{2} x^{3} + 2 \, c x^{\frac{3}{2}} + 1}{c^{2} x^{3} - 1}\right )}{6 \, c^{2}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(a+b*arctanh(c*x^(3/2))),x, algorithm="fricas")

[Out]

1/6*(2*a*c^2*x^3 + 2*b*c*x^(3/2) + (b*c^2*x^3 - b)*log(-(c^2*x^3 + 2*c*x^(3/2) + 1)/(c^2*x^3 - 1)))/c^2

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**2*(a+b*atanh(c*x**(3/2))),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [A]  time = 1.22804, size = 97, normalized size = 1.98 \begin{align*} \frac{1}{3} \, a x^{3} + \frac{1}{6} \,{\left (x^{3} \log \left (-\frac{c x^{\frac{3}{2}} + 1}{c x^{\frac{3}{2}} - 1}\right ) + c{\left (\frac{2 \, x^{\frac{3}{2}}}{c^{2}} - \frac{\log \left ({\left | c x^{\frac{3}{2}} + 1 \right |}\right )}{c^{3}} + \frac{\log \left ({\left | c x^{\frac{3}{2}} - 1 \right |}\right )}{c^{3}}\right )}\right )} b \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(a+b*arctanh(c*x^(3/2))),x, algorithm="giac")

[Out]

1/3*a*x^3 + 1/6*(x^3*log(-(c*x^(3/2) + 1)/(c*x^(3/2) - 1)) + c*(2*x^(3/2)/c^2 - log(abs(c*x^(3/2) + 1))/c^3 +
log(abs(c*x^(3/2) - 1))/c^3))*b